﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Collections.ObjectModel;
using System.Windows;
using QuickZip.UserControls;

namespace StudioEditorTest.CodeEditor
{
	public class CodeLine : ExtendedListViewContentItem
	{
		public ObservableCollection<CodeBlock> CodeBlocks
		{
			get { return GetValue(CodeBlocksProperty) as ObservableCollection<CodeBlock>; }
		}

		// Using a DependencyProperty as the backing store for Blocks.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty CodeBlocksProperty = DependencyProperty.Register(
			"CodeBlocks", 
			typeof(ObservableCollection<CodeBlock>), 
			typeof(CodeLine),
			new UIPropertyMetadata(null));

		public CodeLine()
		{
			this.SetValue(CodeBlocksProperty,new ObservableCollection<CodeBlock>());
			for (int i = 0; i < new Random().Next(10); i++)
			{
				this.CodeBlocks.Add(new CodeBlock());
			}
		}
	}
}
